﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Car
{
   public class Car:Garage
    {
       public string Name { get; set; }

       public string Color { get; set; }

       public  int Wheel { get; set; }

       public void run()
        {
            if (Wheel >= 4)
            {
                Console.WriteLine("车子可以跑");



            }
            else 
            {
                Garage.Repair();
                Console.WriteLine("请输入x修车厂的名字");
                GarageName = Console.ReadLine();

                Console.WriteLine("请输入修车厂的地址");
                GarageSite = Console.ReadLine();

                Console.WriteLine("请输入修车厂的电话");
                GaragePhone =int .Parse(Console.ReadLine());

            } Console.WriteLine("结束");
          


   
   }    







    }
}
